class User:
    '''Create a simple user system'''
    def __init__(self,first_name,last_name,age,gender):
       '''User's basic information'''#注意，连函数注释也要缩进
       self.name=f"{first_name.title()} {last_name.title()}"
       self.age=age
       self.gender=gender

    def describe_user(self):
        '''Used to describe the user's basic information'''
        print(f"The name of the user is {self.name} .")
        print(f"The age of the user is {self.age}.")
        print(f"The gender of the user is {self.gender}")

    def greet_user(self):
        '''Used to greet users'''
        print(f"Hello ,{self.name}")

class Privileges:
    def __init__(self):
        self.privileges=['can add post','can delete post','can ban users']

    def show_privileges(self):
        print("The administrator's permission is ")
        for privilege in self.privileges:
            print(privilege,end=' ')
    

class Admin(User):
    
    def __init__(self,first_name,last_name,age,gender):
        super().__init__(first_name,last_name,age,gender)
        self.privileges=Privileges()


admin=Admin('miro','klose',19,'male')
admin.describe_user()
admin.privileges.show_privileges()